#ifndef DATA_STRUCT_GAME_H
#define	DATA_STRUCT_GAME_H

#include "menu.h"


/**
 * @param width_matrix used to create the matrix used to create the matrix used for the game
 * @param height_matrix used to create the matrix used to create the matrix used for the game
 * */


const int width_matrix = 10;
const int height_matrix = 20;


/**
 * @param block_type used to define different type of blocks
 * */
enum block_type{
    I,          //riga
    J,          //l contrario
    L,          //l
    O,          //quadrato
    S,          //s
    Z,          //s contrario
    T,          //t
    N           //vuoto
};

/**
 * @struct pivot is a struct that contain the key information for the block controllled by the user
 * @param type define the block
 * @param rotation 
 * @param x contain the x position over the matrix
 * @param y contain the y position over the matrix           
 * */
struct pivot{
    block_type type;
    unsigned short int rotation;
    short int x;
    short int y;
};

#endif	/* DATA_STRUCT_GAME_H */

